<?php
$tittleText = '当前位置：SNEAKER CUSTOM / ' . $userMsg->Name . ' 的个人主页';
require("{$CfgPara->root}/view/web/tittle_back_bar.web.v.php");
?>
<div style="padding: 0 15px;">
    <div class="am-g" style="border: 1px solid #dedede;">
        <div class="am-u-sm-7" style="height: 208px; padding: 30px 40px 20px 40px;">
            <div>
                <div class="am-fl">
                    <img class="am-img am-circle" alt="" src="<?= $userMsg->Avatar ?>" width="70" height="70"/>
                </div>
                <div class="am-fl" style="padding-left: 30px;padding-top: 5px;">
                    <b id="user_show_name" data-user-id="<?= $userMsg->Id; ?>"
                       class="web-main-color am-text-lg"><?= $userMsg->Name ?></b>
                    <?php if ($userMsg->Sex == 1) { ?>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <i class="web-main-color am-icon am-icon-mars am-text-lg"></i>
                    <?php } elseif ($userMsg->Sex == 2) { ?>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <i class="web-main-color am-icon am-icon-venus am-text-lg"></i>
                    <?php } ?>
                    <div class="web-tittle-color am-text-xs"
                         style="padding-top: 10px;"><?= $userMsg->Province . "&nbsp;&nbsp;" . $userMsg->City ?></div>
                </div>
                <div class="am-fr" style="padding-top: 10px;">
                    <a class="web-show-btn" onclick="work_recommand(this);">
                        <span class="web-main-color">私信</span>
                    </a>
                </div>
            </div>
            <div style="clear: both; padding-top: 40px;">
                <b class="web-main-color am-text-lg"><?= $userMsg->WorksCount ?></b>
                &nbsp;
                <span class="app-gray-color">作品&nbsp;&nbsp;&bull;&nbsp;</span>
                <b class="web-main-color am-text-lg"><?= $userMsg->ShowCount ?></b>
                &nbsp;
                <span class="app-gray-color app-home-content">主页人气</span>
                <div class="am-fr" style="padding-top: 3px;">
                    <span class="app-gray-color">分享到：</span>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <a onclick="$('#weibo_publish').click();" class="am-icon am-icon-weibo web-main-color"></a>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <i class="am-icon am-icon-weixin web-main-color"></i>
                </div>
            </div>
        </div>
        <div class="am-u-sm-5" style="height: 208px; text-align: center; padding-top: 15px;">
            <div style="padding-top: 65px; height: 178px; width: 100%;border-left: 1px solid #DEDEDE;">
                <a style="color: #8f8f8f;" id="work_field"
                   data-forward="controller=user_field&user_id=<?= $userMsg->Id ?>"
                   onclick="act_content(this)" <?php if (isset($_SESSION['user_id']) && $_SESSION['user_id'] == $userMsg->Id) echo 'data-menu-r="user_field"'; ?>>
                    <b>本领</b>&nbsp;<i class="am-icon-angle-right"></i>
                </a>
                <div class="web-gray-color am-text-xs" style="padding-top: 10px;">
                    他有 <?= $userMsg->FieldCount ?> 种擅长的风格
                </div>
            </div>
        </div>
    </div>
    <div style="height: 20px;"></div>
    <div class="app-gray-color"
         style="border-top: 1px solid #DEDEDE;border-left: 1px solid #DEDEDE;border-right: 1px solid #DEDEDE;">
        <?php
        $seleBarItem = 1;
        $seleBarItem1 = "Ta的作品({$userMsg->WorksCount})";
        $seleBarItem2 = "Ta的推荐({$userMsg->RecommendCount})";
        $seleBarItem3 = "Ta的专题({$userMsg->TopicCount})";
        $seleBarScript1 = 'user_show_work_change(8,this)';
        $seleBarScript2 = 'user_show_work_change(6,this)';
        $seleBarScript3 = 'user_show_work_change(10,this)';
        require("{$CfgPara->root}/view/web/list_sele_bar.web.v.php");
        ?>
    </div>
</div>
<div id="user_show_work_list_div">
    <?php
    if (isset($userMsg)) {
        $InputData['list_type'] = 8;
        $InputData['works_user_id'] = $userMsg->Id;
        //连接作品列表
        require("{$CfgPara->root}/controller/works_list.c.php");
    }
    ?>
</div>